#include "Tree.h"

int main()
{
	BTnode* node1 = CreateTreenode(1);
	BTnode* node2 = CreateTreenode(2);
	BTnode* node3 = CreateTreenode(3);
	BTnode* node4 = CreateTreenode(4);
	BTnode* node5 = CreateTreenode(5);
	BTnode* node6 = CreateTreenode(6);

	node1->left = node2;
	node1->right = node4;
	node2->left = node3;
	node4->left = node5;
	node4->right = node6;

	Postorder(node1);
	printf("\n");
	Preorder(node1);
	printf("\n");
	Inorder(node1);
	printf("\n");

	printf("%d \n", TreeSize(node1));
	printf("%d \n", TreeLeafSize(node1));
	printf("%d \n", BinaryTreeLevelKSize(node1,3));

	return 0;
}
